export default {
  namespaced: true,
  state: () => ({
    count: 100,
  }),
  getters: {
    doubleCount(state, getters, rootState) {
      return state.count + rootState.rootCounter
    },
  },
  mutations: {
    increment(state) {
      state.count++
    },
  },
  actions: {
    incrementCountAction(ctx) {
      ctx.commit('increment')
    },
  },
}
